<link rel="stylesheet" href="__STATIC__/module/common/layui/css/layui.css">

<style>
    .new-form-control{
        margin-left: 10px;
        width: 200px;
        padding: 5px 10px;
        height: 30px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        box-shadow: none;
        color: #555;
        background-color: #fff;
        background-image: none;
        border: 1px solid #ccc;
    }
</style>

<div class="box">
  <div class="box-header">
      
    <div class="row">

        <div class="col-sm-4">
        <ob_link><a class="btn export" url="{:url('exportGameCheckList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
        </div>

        <div class="box-tools search-form">
            <div class="input-group input-group-sm">
                <input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date" name="date" placeholder="日期"   value="{:input('date')}"/>
                <input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date1" name="date1" placeholder="日期"   value="{:input('date1')}"/>
                <input type="text" style="margin-left: 10px;width: 200px;"  class="form-control" name="search_data" placeholder="用户名|UID"  value="{:input('search_data')}"/>

                <select name="game_id" class="new-form-control">
                    <option value="" >全部游戏</option>
                    {volist name='paytype' id='vo'}
                    <option value="{$vo['id']}" {notempty name="param['game_id']"}{if condition="$param['game_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
                <select name="wallet_id" class="new-form-control">
                    <option value="" >全部类型</option>
                    <option value="1" {notempty name="param['wallet_id']"}{if condition="$param['wallet_id'] eq 1"} selected="selected" {/if}{/notempty} >可用</option>
                    <option value="3" {notempty name="param['wallet_id']"}{if condition="$param['wallet_id'] eq 3"} selected="selected" {/if}{/notempty} >GC</option>

                </select>
                <div class="input-group-btn" style="display:inline-block">
                    <button type="button" id="search"  url="{:url('recharge_check_log')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>

                </div>
            </div>
        </div>
    </div>

  </div>
  <div class="box-body table-responsive">
      <div class="top-table"> <span class="top-table-children">总条数:{$list['count']}</span> <span class="top-table-children">可用总额:{$list['ke']}</span> <span class="top-table-children">GC总额:{$list['gc']}</span>  </div>
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>
             序号
          </th>
          <th>ID</th>
          <th>用户账号</th>
          <th>用户账号UID</th>
          <th>钱包类型</th>
          <th>转回金额</th>
          <th>应用名称</th>
          <th>流水号</th>
          <th>申请时间</th>
          <th>状态</th>
          <th>审核时间</th>
          <th>审核人</th>

      </tr>
      </thead>

      {notempty name='list.list'}
        <tbody>
            {volist name='list.list' id='vo' key='k'}
                <tr>
                  <td>
                    {$k}
                  </td>
                    <td>{$vo.id}</td>
                  <td>{$vo.username}</td>
                  <td>{$vo.user_id}</td>
                    <td>{$vo->towallet['name']}</td>
                    <td>{$vo.number}</td>
                    <td>{$vo->game['name']}</td>
                    <td>{$vo.serial_number}</td>
					

                <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                    <td>{$vo.state_text}</td>
                    <td>{$vo.update_time|date='Y-m-d H:i:s',###}</td>
                    <td>{$vo->admin_name}</td>

                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
      <input type="hidden"  id="layui"  value=""/>

  </div>
  <div class="box-footer clearfix text-center">
      {$list.list->render()}
  </div>
</div>
<script>
    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>